﻿using System;
using System.Collections.Generic;
using DDDProject.Aspects;
using DDDProject.Components.ContextProviders;

namespace $ApplicationProjectName$.Controllers
{
    /// <summary>
    /// Base class for all domain controllers
    /// </summary>
    public class DomainControllerBase
    {
        [InjectComponent]
        private IContextProvider _contextProvider;

        /// <summary>
        /// Gets the context store.
        /// </summary>
        protected Dictionary<String, Object> Context
        {
            get
            {
                return _contextProvider.GetContextStore();
            }
        }
    }
}
